package com.threeti.mecool.core.domain.model.sellinto;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/** 卖进问题 */
@Embeddable
public class SellIntoProblem implements Serializable {
  
  @Column(name="PROBLEM_TYPE")  
  @Enumerated(EnumType.ORDINAL)  
  private SellIntoProblemType type = SellIntoProblemType.UNKNOWN;
  
  @Column(name="PROBLEM_DESC")
  private String description;

  public SellIntoProblem(SellIntoProblemType type, String description) {
    super();
    this.type = type;
    this.description = description;
  }

  /** 取得卖进问题类型 */
  public SellIntoProblemType getType() {
    return type;
  }

  /** 取得卖进问题描述 */
  public String getDescription() {
    return description;
  }

  @Override
  public String toString() {
    return "SellIntoProblem [type=" + type + ", description=" + description + "]";
  }

  SellIntoProblem() {
  }

  public void setType(SellIntoProblemType type) {
    this.type = type;
  }

  public void setDescription(String description) {
    this.description = description;
  }
  
  
}
